package com.weishi.project.training.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weishi.project.api.vo.HeartRateCountVo;
import com.weishi.project.training.domain.HeartRateCount;

import java.util.List;
import java.util.Map;

/**
 * 心率计次数据Mapper接口
 */
public interface HeartRateCountMapper extends BaseMapper<HeartRateCount> {

    /**
     * 查询心率计次数据列表
     */
    List<HeartRateCount> selectHeartRateCountList(HeartRateCount heartRateCount);

    List<HeartRateCount> selectCountByChannel(Integer channelId);

    void updateByChannelId(HeartRateCount heart);

    List<HeartRateCount> selectHeartRateCountByMap(Map<String, Integer> params);

    List<HeartRateCountVo> selectCountBySportsman(Map<String, Object> params);
}